class CreateChampions < ActiveRecord::Migration
  def self.up
    create_table :champions do |t|
      t.string :name

      t.timestamps
    end

    champ = Champion.new
    champ.name = "Pantheon"
    champ.save

    champ = Champion.new
    champ.name = "Alistar"
    champ.save

    champ = Champion.new
    champ.name = "Fiddlesticks"
    champ.save

    champ = Champion.new
    champ.name = "Annie"
    champ.save

    champ = Champion.new
    champ.name = "Shen"
    champ.save

    champ = Champion.new
    champ.name = "Ashe"
    champ.save

    champ = Champion.new
    champ.name = "Kennen"
    champ.save

    champ = Champion.new
    champ.name = "Twisted Fate"
    champ.save

    champ = Champion.new
    champ.name = "Teemo"
    champ.save
  end

  def self.down
    drop_table :champions
  end
end
